package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author health
 * @since 2023-04-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
  @TableName("admin_log")
@ApiModel(value = "AdminLog对象", description = "")
public class AdminLog implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键ID")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("操作用户")
  private String username;

  @ApiModelProperty("角色")
  private String roles;

  @ApiModelProperty("请求接口")
  private String requestUrl;

  @ApiModelProperty("请求方式")
  private String type;

  @ApiModelProperty("操作名称")
  private String operationName;

  @ApiModelProperty("ip")
  private String ip;

  @ApiModelProperty("请求接口耗时")
  private Long spendTime;

  @ApiModelProperty("类地址")
  private String classPath;

  @ApiModelProperty("请求参数")
  private String params;

  @ApiModelProperty("方法名")
  private String methodName;

  @ApiModelProperty("返回结果")
  private String result;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty("是否删除")
      @TableLogic
      private Integer isDeleted;
}
